package com.cgsrp.cgsrp_shopping.service;

import com.cgsrp.cgsrp_shopping.domain.Product;
import com.cgsrp.utils.Result;

public interface ProductService{


    int deleteByPrimaryKey(Integer id);

    int insert(Product record);

    int insertSelective(Product record);

    Product selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);

    Result list(int userId, Integer curPage, Integer pageSize, String searchKey);

    Result add(Product product);

    Result del(Integer productId);


    Result up(Integer productId);

    Result update(Product product, Integer userId);


    Result buyList(Integer curPage, Integer pageSize, String searchKey);
}
